package com.x.provider.general.model.domain.place;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.x.core.domain.BaseIdEntity;
import com.x.core.wrapper.gis.PointTypeHandler;
import lombok.*;

/**
 * 区域
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = false)
@TableName("place_region")
public class Region extends BaseIdEntity<Long> {
    private Integer regionType;
    private String code;
    private String name;
    private String fullName;
    @TableField(typeHandler = PointTypeHandler.class)
    private String location;
    private String pinyin;
    private Integer level;
    private Long parentId;
    private Integer displayOrder;
}
